<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS文本属性</title>
    <style>
        .content{
            background-color: blueviolet;
            width: 200px;
            height: 200px;
            margin: 50px auto;
        }
        .bg{
            background-color: burlywood;
            padding: 1px;
        }
        /* 常用的文本不换行，显示...的css */
        .text{
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
    <div class="bg">
        <div class="content">
        
        </div>
    </div>
</body>
</html>